import _axios from '../plugins/axios';

class Goods {
	getGoodDetail(id) {
		return _axios.post('small4/shop/goods/detail?id=' + id)
	}

	getGoodReputation({id, page = 1, pageSize = 30}) {
		return _axios.post(`small4/shop/goods/reputation?goodsId=${id}&page=${page}&pageSize=${pageSize}`)
	}

	getGoodPrice({goodsId, propertyChildIds}) {
		return _axios.get(`small4/shop/goods/price?goodsId=${goodsId}&propertyChildIds=${propertyChildIds}`)
	}
}

export default Goods;
